package com.linkdood.app.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 消息
 * @author hycao
 */
@Data
@TableName("notice_message")
public class NoticeMessage {

    @TableId
    private String id;

    private String title;

    @TableField(value = "`desc`")
    private String desc;

    private String content;

    /**
     * item 图片地址
     */
    private String src;

    /**
     * url 链接
     */
    private String url;

    private String imgs;

    private LocalDateTime startTime;

    private LocalDateTime endTime;

    private LocalDateTime dealTime;

    private String fromUser;

    private String toUsers;

    private String fromName;

    private String toNames;

    /**
     * 0:普通消息 1:交互式按钮消息 2:返回消息
     */
    private Integer type;

    /**
     * 0：未处理 1：处理中 2：处理成功 3：处理失败
     */
    private Integer status;

    private String description1;

    /**
     * 当 type = 1 时,存储 field, 当 type = 2 ,存储返回消息的内容格式
     */
    private String reserve1;

    /**
     * 当 type = 2 时,存储 bid
     */
    private String reserve2;

    /**
     * 当 type = 1 时,存储 param 参数， type = 2 时，存储 mToken
     */
    private String reserve3;

    private String titleBackgroundColor;

    /**
     * 聊天场景：目前单聊为1，群聊为2
     */
    private Integer chatSceneType;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /**
     * 第三方接入平台id
     */
    private String thirdPartyId;
}
